package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjAdmRole;
import com.zb.entity.dto.RoleDto;
import com.zb.entity.dto.RoleSelect;
import com.zb.exception.RegisterException;

import java.util.Map;

/**
 * <p>
 * 后台角色表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-07-07
 */
public interface ZjAdmRoleService extends IService<ZjAdmRole> {

    /**
     * 添加或修改角色
     * @param roleDto
     */
    void add(RoleDto roleDto) throws RegisterException;

    /**
     * 角色列表查询
     *
     * @param roleSelect
     * @return
     */
    Map<String, Object> getList(RoleSelect roleSelect);

}
